<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver CH9121: ch9121 example driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver CH9121
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">CH9121 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ch9121__example__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ch9121 example driver function<div class="ingroups"><a class="el" href="group__ch9121__driver.html">ch9121 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ch9121 example driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gae43cf4da523fc2010ef9f4151d78adb1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gae43cf4da523fc2010ef9f4151d78adb1">CH9121_BASIC_DEFAULT_DHCP</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td></tr>
<tr class="memdesc:gae43cf4da523fc2010ef9f4151d78adb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 basic example default definition  <a href="group__ch9121__example__driver.html#gae43cf4da523fc2010ef9f4151d78adb1">More...</a><br /></td></tr>
<tr class="separator:gae43cf4da523fc2010ef9f4151d78adb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cec53fe494d763048810abef30e89ba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga9cec53fe494d763048810abef30e89ba">CH9121_BASIC_DEFAULT_UART_PORT</a>&#160;&#160;&#160;9600</td></tr>
<tr class="separator:ga9cec53fe494d763048810abef30e89ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae4fc342781ce4da8695de0e8b7760682"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gae4fc342781ce4da8695de0e8b7760682">CH9121_BASIC_DEFAULT_UART_DATA_BIT</a>&#160;&#160;&#160;8</td></tr>
<tr class="separator:gae4fc342781ce4da8695de0e8b7760682"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaceeebdece983c6c3796560baa167f2a9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gaceeebdece983c6c3796560baa167f2a9">CH9121_BASIC_DEFAULT_UART_STOP_BIT</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:gaceeebdece983c6c3796560baa167f2a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab8c48dbfa5ed45f6fd56a68ac315e5d0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gab8c48dbfa5ed45f6fd56a68ac315e5d0">CH9121_BASIC_DEFAULT_UART_PARITY</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80eae92b585a2a716954404ccca52a44b116">CH9121_PARITY_NONE</a></td></tr>
<tr class="separator:gab8c48dbfa5ed45f6fd56a68ac315e5d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67e8c157bd65fd5e4e4e1032f30e7785"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga67e8c157bd65fd5e4e4e1032f30e7785">CH9121_BASIC_DEFAULT_UART_TIMEOUT</a>&#160;&#160;&#160;10</td></tr>
<tr class="separator:ga67e8c157bd65fd5e4e4e1032f30e7785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2af24f28e2981e1cf0e361e9b6dcc61a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga2af24f28e2981e1cf0e361e9b6dcc61a">CH9121_BASIC_DEFAULT_UART_SOURCE_PORT_RANDOM</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td></tr>
<tr class="separator:ga2af24f28e2981e1cf0e361e9b6dcc61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga97382779271603aaaa8b95d5dd5efa99"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga97382779271603aaaa8b95d5dd5efa99">CH9121_BASIC_DEFAULT_UART_BUFFER_LENGTH</a>&#160;&#160;&#160;1024</td></tr>
<tr class="separator:ga97382779271603aaaa8b95d5dd5efa99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67773a3dd2477eccee1eb738e43a17ff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga67773a3dd2477eccee1eb738e43a17ff">CH9121_BASIC_DEFAULT_UART_FLUSH</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td></tr>
<tr class="separator:ga67773a3dd2477eccee1eb738e43a17ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga74f4cb2e39990e8bebf49eee4b9e75f0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga74f4cb2e39990e8bebf49eee4b9e75f0">CH9121_BASIC_DEFAULT_UART_PORT2</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td></tr>
<tr class="separator:ga74f4cb2e39990e8bebf49eee4b9e75f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf19d2fa44856eca0f025b308b1d2c764"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gaf19d2fa44856eca0f025b308b1d2c764">CH9121_BASIC_DEFAULT_DISCONNECT_WITH_NO_RJ45</a>&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea776657b5ef1ad43c3a3f1e52a00abe22">CH9121_BOOL_TRUE</a></td></tr>
<tr class="separator:gaf19d2fa44856eca0f025b308b1d2c764"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab9388c53c09f78fb9a70a3696c24a61a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gab9388c53c09f78fb9a70a3696c24a61a">ch9121_basic_init</a> (void)</td></tr>
<tr class="memdesc:gab9388c53c09f78fb9a70a3696c24a61a"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example init  <a href="group__ch9121__example__driver.html#gab9388c53c09f78fb9a70a3696c24a61a">More...</a><br /></td></tr>
<tr class="separator:gab9388c53c09f78fb9a70a3696c24a61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab41a6a4565936fb46ae8a0efb117bc74"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gab41a6a4565936fb46ae8a0efb117bc74">ch9121_basic_deinit</a> (void)</td></tr>
<tr class="memdesc:gab41a6a4565936fb46ae8a0efb117bc74"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example deinit  <a href="group__ch9121__example__driver.html#gab41a6a4565936fb46ae8a0efb117bc74">More...</a><br /></td></tr>
<tr class="separator:gab41a6a4565936fb46ae8a0efb117bc74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c033cb180df43356f3e22c67f655c01"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#ga6c033cb180df43356f3e22c67f655c01">ch9121_basic_read</a> (uint8_t *buf, uint16_t *len)</td></tr>
<tr class="memdesc:ga6c033cb180df43356f3e22c67f655c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example read data  <a href="group__ch9121__example__driver.html#ga6c033cb180df43356f3e22c67f655c01">More...</a><br /></td></tr>
<tr class="separator:ga6c033cb180df43356f3e22c67f655c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae88d5f3d8f1b898d484cb54e646ca1e9"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gae88d5f3d8f1b898d484cb54e646ca1e9">ch9121_basic_write</a> (uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:gae88d5f3d8f1b898d484cb54e646ca1e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example write data  <a href="group__ch9121__example__driver.html#gae88d5f3d8f1b898d484cb54e646ca1e9">More...</a><br /></td></tr>
<tr class="separator:gae88d5f3d8f1b898d484cb54e646ca1e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab461704b5eec5d42a6e5af4a4be0064f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__example__driver.html#gab461704b5eec5d42a6e5af4a4be0064f">ch9121_basic_config</a> (<a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> uart_port, <a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a> mode, uint8_t ip[4], uint16_t port, uint8_t mask[4], uint8_t gateway[4], uint8_t dest_ip[4], uint16_t dest_port)</td></tr>
<tr class="memdesc:gab461704b5eec5d42a6e5af4a4be0064f"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example config  <a href="group__ch9121__example__driver.html#gab461704b5eec5d42a6e5af4a4be0064f">More...</a><br /></td></tr>
<tr class="separator:gab461704b5eec5d42a6e5af4a4be0064f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ch9121 example driver modules </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gae43cf4da523fc2010ef9f4151d78adb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae43cf4da523fc2010ef9f4151d78adb1">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_DHCP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_DHCP&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 basic example default definition </p>
<p>disable dhcp </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00056">56</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="gaf19d2fa44856eca0f025b308b1d2c764"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf19d2fa44856eca0f025b308b1d2c764">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_DISCONNECT_WITH_NO_RJ45</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_DISCONNECT_WITH_NO_RJ45&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea776657b5ef1ad43c3a3f1e52a00abe22">CH9121_BOOL_TRUE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>enable </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00066">66</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga97382779271603aaaa8b95d5dd5efa99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga97382779271603aaaa8b95d5dd5efa99">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_BUFFER_LENGTH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_BUFFER_LENGTH&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>1024 bytes </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00063">63</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="gae4fc342781ce4da8695de0e8b7760682"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae4fc342781ce4da8695de0e8b7760682">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_DATA_BIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_DATA_BIT&#160;&#160;&#160;8</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>8 bit </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00058">58</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga67773a3dd2477eccee1eb738e43a17ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga67773a3dd2477eccee1eb738e43a17ff">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_FLUSH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_FLUSH&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>disable flush </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00064">64</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="gab8c48dbfa5ed45f6fd56a68ac315e5d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab8c48dbfa5ed45f6fd56a68ac315e5d0">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_PARITY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_PARITY&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80eae92b585a2a716954404ccca52a44b116">CH9121_PARITY_NONE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>no parity </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00060">60</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga9cec53fe494d763048810abef30e89ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9cec53fe494d763048810abef30e89ba">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_PORT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_PORT&#160;&#160;&#160;9600</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>9600 </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00057">57</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga74f4cb2e39990e8bebf49eee4b9e75f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga74f4cb2e39990e8bebf49eee4b9e75f0">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_PORT2</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_PORT2&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>disable uart2 </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00065">65</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga2af24f28e2981e1cf0e361e9b6dcc61a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2af24f28e2981e1cf0e361e9b6dcc61a">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_SOURCE_PORT_RANDOM</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_SOURCE_PORT_RANDOM&#160;&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>disable random </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00062">62</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="gaceeebdece983c6c3796560baa167f2a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaceeebdece983c6c3796560baa167f2a9">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_STOP_BIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_STOP_BIT&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>1 bit </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00059">59</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<a id="ga67e8c157bd65fd5e4e4e1032f30e7785"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga67e8c157bd65fd5e4e4e1032f30e7785">&#9670;&nbsp;</a></span>CH9121_BASIC_DEFAULT_UART_TIMEOUT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_BASIC_DEFAULT_UART_TIMEOUT&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>10ms </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8h_source.html#l00061">61</a> of file <a class="el" href="driver__ch9121__basic_8h_source.html">driver_ch9121_basic.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gab461704b5eec5d42a6e5af4a4be0064f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab461704b5eec5d42a6e5af4a4be0064f">&#9670;&nbsp;</a></span>ch9121_basic_config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_basic_config </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>uart_port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mask</em>[4], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>gateway</em>[4], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dest_ip</em>[4], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>dest_port</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example config </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">uart_port</td><td>is the uart port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>is the set mode </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the local port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*mask</td><td>points to a mask buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*gateway</td><td>points to a gateway buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*dest_ip</td><td>points to a dest ip buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dest_port</td><td>is the dest port </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 config failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8c_source.html#l00095">95</a> of file <a class="el" href="driver__ch9121__basic_8c_source.html">driver_ch9121_basic.c</a>.</p>

</div>
</div>
<a id="gab41a6a4565936fb46ae8a0efb117bc74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab41a6a4565936fb46ae8a0efb117bc74">&#9670;&nbsp;</a></span>ch9121_basic_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_basic_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8c_source.html#l00323">323</a> of file <a class="el" href="driver__ch9121__basic_8c_source.html">driver_ch9121_basic.c</a>.</p>

</div>
</div>
<a id="gab9388c53c09f78fb9a70a3696c24a61a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9388c53c09f78fb9a70a3696c24a61a">&#9670;&nbsp;</a></span>ch9121_basic_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_basic_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8c_source.html#l00048">48</a> of file <a class="el" href="driver__ch9121__basic_8c_source.html">driver_ch9121_basic.c</a>.</p>

</div>
</div>
<a id="ga6c033cb180df43356f3e22c67f655c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6c033cb180df43356f3e22c67f655c01">&#9670;&nbsp;</a></span>ch9121_basic_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_basic_read </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example read data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">*len</td><td>points to a length buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8c_source.html#l00287">287</a> of file <a class="el" href="driver__ch9121__basic_8c_source.html">driver_ch9121_basic.c</a>.</p>

</div>
</div>
<a id="gae88d5f3d8f1b898d484cb54e646ca1e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae88d5f3d8f1b898d484cb54e646ca1e9">&#9670;&nbsp;</a></span>ch9121_basic_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_basic_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example write data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>is the data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__basic_8c_source.html#l00306">306</a> of file <a class="el" href="driver__ch9121__basic_8c_source.html">driver_ch9121_basic.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
